home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / mawk.zip / FILES.H < prev    next >
C/C++ Source or Header  |  1991-04-07  |  1KB  |  42 lines

  1.  
  2. /********************************************
  3. files.h
  4. copyright 1991, Michael D. Brennan
  5.  
  6. This is a source file for mawk, an implementation of
  7. the Awk programming language as defined in
  8. Aho, Kernighan and Weinberger, The AWK Programming Language,
  9. Addison-Wesley, 1988.
  10.  
  11. See the accompaning file, LIMITATIONS, for restrictions
  12. regarding modification and redistribution of this
  13. program in source or binary form.
  14. ********************************************/
  15.  
  16. /*$Log:    files.h,v $
  17.  * Revision 2.1  91/04/08  08:23:07  brennan
  18.  * VERSION 0.97
  19.  * 
  20. */
  21.  
  22. #ifndef   FILES_H
  23. #define   FILES_H
  24.  
  25. /* IO redirection types */
  26. #define  F_IN           (-5)
  27. #define  PIPE_IN        (-4)
  28. #define  PIPE_OUT       (-3)
  29. #define  F_APPEND       (-2)
  30. #define  F_TRUNC        (-1)
  31.  
  32. extern char *shell ; /* for pipes and system() */
  33.  
  34. PTR  PROTO(file_find, (STRING *, int)) ;
  35. int  PROTO(file_close, (STRING *)) ;
  36. PTR  PROTO(get_pipe, (char *, int) ) ;
  37. int  PROTO(wait_for, (int) ) ;
  38. void  PROTO( close_out_pipes, (void) ) ;
  39.  
  40.  
  41. #endif
  42.